package com.miao.elm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.miao.elm.entity.OrdersEntity;
import com.miao.elm.to.OrderTo;
import com.miao.elm.to.OrdersTo;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * 
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2022-11-01 11:53:47
 */
public interface OrdersService extends IService<OrdersEntity> {

    String createOrders(OrderTo orderTo) throws ExecutionException, InterruptedException;

    OrderTo getOrdersById(String orderId);

    List<OrdersTo> listOrdersByUserId(String userId);
}

